package com.itheima.ssm.service.impl;

import com.itheima.ssm.mapper.UserMapper;
import com.itheima.ssm.pojo.User;
import com.itheima.ssm.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service("userService")
public class UserService implements IUserService {

    @Autowired
    private UserMapper userMapper;
    public User findUserById(Long id) {
        return userMapper.selectUserById(id);
    }

    public void deleteUserByid(Long id) {
        userMapper.deleteUserById(id);
    }
}
